//
// Created by 张玭 on 24-6-17.
//

#include "../HeadFiles/utils.h"

void test() {
    /*测试代码*/
    Worker *worker = NULL;

    worker = new Employee(1, "张三", 1);
    worker->showInfo();
    delete worker;

    worker = new Manager(2, "李四", 2);
    worker->showInfo();
    delete worker;

    worker = new Boss(3, "王五", 3);
    worker->showInfo();
    delete worker;
}

void showWorkerInfo(Worker **worker, int num) {
    for (int i = 0; i < num; ++i) {
        worker[i]->showInfo();
    }

}
